package com.zzlzd.drp.domain;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author ceshi
 * @Title:
 * @Package
 * @Description:
 * @date 2021-3-1919:18
 */
public interface GoodsMenuRep extends JpaRepository<GoodsMenuDto,Integer> {
    @Query(nativeQuery=true, value=" SELECT * FROM goods_menu order by sort")
    public List<GoodsMenuDto> getMenu();
}
